<?php
header('content-type:text/html;charset=utf-8');
define('APP_ROOT', dirname(__DIR__));

define("APP_PATH", APP_ROOT . '/application'); /* 指向public的上一级 */
define('APP_CONFIG_PATH', APP_ROOT . '/conf');
define('STORAGE_PATH', APP_ROOT . '/storage');

$aa=ini_get('yaf.environ');
$aa=ini_set('yaf.environ', 'develop');

$app = new Yaf\Application(APP_ROOT . "/conf/application.ini", Yaf\ENVIRON);
$app->bootstrap()->run();
?>
